<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="../system/components/xtree/xtree.css">
<title>Insert title here</title>
<style type="text/css">
body,html{
width:100%;
height:100%;
}
</style>
</head>
<body>
<div id="ss" style="height:100px;width:300px;">

</div>
</body>
<script type="text/javascript" src="../system/third/jquery/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="../system/components/xtree/xtree.js"></script>
<script type="text/javascript">

var xtree=new XTree($("#ss")[0],{hasCheckBox:true});
var root = xtree.rootItem;
xtree.setOnCheck(function(){
	console.log(this)
})
var node1 = xtree.createNode(root,"123");
var node2 = xtree.createNode(root,"456");
var node3 =xtree.createNode(node2,"789");
node3.setChecked(true);

</script>
</html>